home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Modules / BackSpaceModules / Source / AquariumView / Makefile2 < prev    next >
Text File  |  1993-03-12  |  772b  |  39 lines

  1. INSTALLDIR=    $(HOME)/Apps
  2.  
  3. DYNAVIEWS=    AquariumView.o
  4.  
  5. PSWFILES=    wraps.o
  6.  
  7. THINGSTOREMOVE = wraps.c wraps.h Fish.o RotImage.o Aquarium.o FishBrain.o
  8.  
  9. .SUFFIXES: .m .o .c .psw
  10.  
  11. .m.o:
  12.     cc -O -g -Wall -c $*.m -o $*.o
  13.  
  14. AquariumView.o: Aquarium.o Aquarium.h Fish.o Fish.h RotImage.o FishBrain.o wraps.o
  15.     ld -x -r -o AquariumView.o Aquarium.o Fish.o RotImage.o wraps.o FishBrain.o
  16.  
  17. MyImage.o: wraps.o
  18.  
  19. wraps.o: wraps.psw wraps.c
  20.     cc -O -g -c wraps.c
  21.  
  22. wraps.c:
  23.     pswrap -h wraps.h -o wraps.c wraps.psw
  24. all::
  25.     $(MAKE) $(PSWFILES)
  26.     $(MAKE) $(DYNAVIEWS)
  27.     
  28. clean::
  29.     rm -rf $(PSWFILES) $(DYNAVIEWS) $(THINGSTOREMOVE)
  30.     
  31.  
  32. install::    all install-views
  33.  
  34. install-views::
  35.     mkdirs $(INSTALLDIR)/BackSpace.app && \
  36.     for view in $(DYNAVIEWS); do \
  37.       cp $$view $(INSTALLDIR)/BackSpace.app; \
  38.     done
  39.